<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>号码开停</title>
<script src="js/mui.min.js"></script>
<link href="css/mui.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="css/style.css" />
<style>
	.mui-content>.mui-table-view:first-child{
		margin-top: 20px;
	}
	.mui-table-view-cell:first-child{
		font-size: 15px;
		color: #8f8f94;
	}
	.mui-table-view-cell:first-child p{
		font-size: 17px;
	}
</style>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
	    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	    <h1 class="mui-title">号码开停</h1>
	</header>
	<div class="mui-content">
		<ul class="mui-table-view">
			<li class="mui-table-view-cell">
				号码
		        <p class="mui-pull-right">当前状态</p>
	        </li>
	        <li class="mui-table-view-cell">
	        	13800138001
		        <div class="mui-switch mui-switch-blue mui-active" id="switch">
					<div class="mui-switch-handle"></div>
				</div>
	        </li>
	    </ul>
	    <div class="mui-content-padded">
			<p>温馨提示：号码停用后将无法使用XXXX功能。</p>
		</div>
	</div>
	
<script type="text/javascript" charset="utf-8">
  	mui.init();
	document.getElementById("switch").addEventListener("toggle",function(event){
	  if(event.detail.isActive){
	    console.log("号码启用");
	  }else{
	    console.log("号码停用");  
	  }
	})

</script>
</body>
</html>